<template>
  <div class="layout layout-content-box">
    <el-card class="box-card">
      <div slot="header" class="clearfix">
        <span style="float:left;">作者列表</span>
        <el-button style="float: right;padding: 3px 0" type="text">添加作者</el-button>
      </div>
      <el-table :data="tableData" stripe border  align="center">
        <el-table-column type="selection" align="center"></el-table-column>
        <el-table-column type="index"></el-table-column>

        <el-table-column label="标题" width="240px">
          <template slot-scope="scope">
            <a>{{ scope.row.title }}</a>
          </template>
        </el-table-column>
        <el-table-column prop="description" label="简介">
        </el-table-column>
        <el-table-column label="作者" width="80px">
          <template slot-scope="scope">
            <a href="/author/1">{{ scope.row.author }}</a>
          </template>
        </el-table-column>
        <el-table-column prop="date" label="日期" width="180"  align="center">
          <template slot-scope="scope">
              <i class="el-icon-time"></i>
              <span style="margin-left: 10px">{{ scope.row.date }}</span>
          </template>
        </el-table-column>
        <el-table-column label="操作" width="180px">
          <template  slot-scope="scope">
            <el-button type="primary" size="small">编辑</el-button>
            <el-button type="danger" size="small">删除</el-button>
          </template>
        </el-table-column>
      </el-table>
      <el-row type="flex" class="row-bg" justify="space-between" style="padding:20px 0;">
        <el-col :span="6">
           <el-dropdown>
            <el-button size="small" type="primary">
              批量操作<i class="el-icon-arrow-down el-icon--right"></i>
            </el-button>
            <el-dropdown-menu slot="dropdown">
              <el-dropdown-item>黄金糕</el-dropdown-item>
              <el-dropdown-item>狮子头</el-dropdown-item>
              <el-dropdown-item>螺蛳粉</el-dropdown-item>
              <el-dropdown-item>双皮奶</el-dropdown-item>
              <el-dropdown-item>蚵仔煎</el-dropdown-item>
            </el-dropdown-menu>
          </el-dropdown>
        </el-col>
        <el-col :span="8">
            <div align="right">
              <el-pagination background
                layout="prev, pager, next"
                :total="1000">
              </el-pagination>
            </div>
        </el-col>
      </el-row>
    </el-card>
  </div>
</template>
<script>
export default {
  data() {
    return {
      activeIndex: "1",
      activeIndex2: "1",
      tableData: [
        {
          date: "2016-05-02",
          title: "AE教程！十秒做出动态Glitch故障效果",
          description: "上海市普陀区金沙江路 1518 弄",
          author: "六扇门"
        },
        {
          date: "2016-05-04",
          title: "Zbrush教程！教你雕刻精灵半身像（2）",
          description: "上海市普陀区金沙江路 1517 弄",
          author: "六扇门"
        },
        {
          date: "2016-05-01",
          title: "酷站推荐！3D优秀模型赏析下载一网打尽",
          description: "上海市普陀区金沙江路 1519 弄",
          author: "六扇门"
        },
        {
          date: "2016-05-03",
          title: "新手设计之路！中文字体设计基础",
          description: "上海市普陀区金沙江路 1516 弄",
          author: "六扇门"
        }
      ]
    };
  },
  methods: {

  }
};
</script>

